package cn.wolfcode.transfer.service;

import cn.wolfcode.transfer.domain.Role;
import cn.wolfcode.transfer.domain.Permission;
import cn.wolfcode.transfer.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IRoleService {
    int insert(Role role, Long[] ids);

    int deleteByPrimaryKey(Long id);

    int updateByPrimaryKey(Role role);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();
    PageInfo<Role> getPageInfo(QueryObject qo);


    void insert(Role role);

    void updateByPrimaryKey(Role role, Long[] ids);

    List<Permission> selectPermission(Long id);
    List<Permission> selectPermissionAll();

}